package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.UserRegisterMapper;
import com.ruoyi.system.domain.UserRegister;
import com.ruoyi.system.service.IUserRegisterService;

/**
 * 测试用户注册Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-05
 */
@Service
public class UserRegisterServiceImpl implements IUserRegisterService 
{
    @Autowired
    private UserRegisterMapper userRegisterMapper;

    /**
     * 查询测试用户注册
     * 
     * @param id 测试用户注册主键
     * @return 测试用户注册
     */
    @Override
    public UserRegister selectUserRegisterById(Long id)
    {
        return userRegisterMapper.selectUserRegisterById(id);
    }

    /**
     * 查询测试用户注册列表
     * 
     * @param userRegister 测试用户注册
     * @return 测试用户注册
     */
    @Override
    public List<UserRegister> selectUserRegisterList(UserRegister userRegister)
    {
        return userRegisterMapper.selectUserRegisterList(userRegister);
    }

    /**
     * 新增测试用户注册
     * 
     * @param userRegister 测试用户注册
     * @return 结果
     */
    @Override
    public int insertUserRegister(UserRegister userRegister)
    {
        return userRegisterMapper.insertUserRegister(userRegister);
    }

    /**
     * 修改测试用户注册
     * 
     * @param userRegister 测试用户注册
     * @return 结果
     */
    @Override
    public int updateUserRegister(UserRegister userRegister)
    {
        return userRegisterMapper.updateUserRegister(userRegister);
    }

    /**
     * 批量删除测试用户注册
     * 
     * @param ids 需要删除的测试用户注册主键
     * @return 结果
     */
    @Override
    public int deleteUserRegisterByIds(Long[] ids)
    {
        return userRegisterMapper.deleteUserRegisterByIds(ids);
    }

    /**
     * 删除测试用户注册信息
     * 
     * @param id 测试用户注册主键
     * @return 结果
     */
    @Override
    public int deleteUserRegisterById(Long id)
    {
        return userRegisterMapper.deleteUserRegisterById(id);
    }
}
